<?php

/*
Process Set First Pets (admin_set_firstpets.pro.php)
*/

$rank_check = "7";
include "../global.inc.php";

$findGetPet1 = fetch("SELECT * FROM pets2 WHERE game = '$game' AND id = '$pet1'");
$findGetPet2 = fetch("SELECT * FROM pets2 WHERE game = '$game' AND id = '$pet2'");

if ((!$findGetPet1[id]) OR (!$findGetPet2[id]))
{
	die(header(error("admin_set_firstpets.php?game=$game", "Please only use pets in your game!")));
}

mysql_query("DELETE FROM getfirst_pet WHERE game = '$game'");
mysql_query("INSERT INTO getfirst_pet (getpet_1,getpet_2,game) VALUES ('$findGetPet1[id]','$findGetPet2[id]','$game')");

header("Location: admin_set_firstpets.php?game=$game&error=The+get+first+pet+page+is+setup+now!");

?>
